#ifndef ITEMALLLISTS_H
#define ITEMALLLISTS_H

#include <QObject>

class ItemAllLists : public QObject
{
    Q_OBJECT

    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(QString image READ image WRITE setImage NOTIFY imageChanged)
    Q_PROPERTY(int index READ index WRITE setIndex NOTIFY indexChanged)
    Q_PROPERTY(int id READ id)

public:
    explicit ItemAllLists(QObject *parent = 0);
    ItemAllLists(QString name, QString image, int index, int id);
    ~ItemAllLists();

    QString name();
    QString image();
    int index();
    int id();

signals:
    void nameChanged(QString newName);
    void imageChanged(QString newImage);
    void indexChanged(int newIndex);

public slots:
    void setName(QString name);
    void setImage(QString image);
    void setIndex(int index);

private:
    QString m_Name;
    QString m_Image;
    int m_Index;
    int m_Id;

};

#endif // ITEMALLLISTS_H
